package com.anorak.betsy;

import cn.hutool.core.io.FileUtil;

import java.io.File;
import java.util.List;

/**
 * @author anorak
 */
public class Check {

    public static void main(String[] args) {
        int num = 0;
        String Path = "/Users/anorak/Downloads/music/";
        String QQPath = "/Users/anorak/Downloads/QQMusic/";
        List<File> fileList = FileUtil.loopFiles(Path);
        for (File file : fileList) {
            if ( file.isFile() ){
                num++;
                FileUtil.copy(file, new File(QQPath + file.getName()), true);
            }
        }
        System.out.println("total = " + num);
    }

}
